package com.itheima.book.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName book
 */
@TableName(value ="book")
@Data
public class Book implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String author;

    private BigDecimal price;

    @TableField("book_condition")
    private String bookCondition;

    private String description;

    private String imageUrl;

    private String status;

    private Long sellerId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;
}